package org.itboys.basetemplate.dto;

import org.itboys.member.entity.Member;

import java.text.SimpleDateFormat;

/**
 * 会员基本信息
 * @author 董事长.土豪.章
 *
 */
public class MemberDTO {

	private long id;
	private String nickname;
	private String logo;//会员头像
	private String regTime;

	private static SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");

	public MemberDTO(Member member) {
		this.id = member.getId();
		this.nickname = member.getNickname();
		this.logo = member.getLogo();
		this.regTime = format.format(member.getRegTime());
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getRegTime() {
		return regTime;
	}

	public void setRegTime(String regTime) {
		this.regTime = regTime;
	}
}
